<script>
	export default {
		onLaunch: function() {
			this.$store.state.tabbarCurrent = uni.getStorageSync("tabbarCurrent") || 0
			// #ifdef H5
				if(document.cookie.includes("aiettoken")) {
					this.$store.state.isLogin = true
					this.$store.dispatch("getUser")
				}
			// #endif
			uni.getSystemInfo({
				success(res){
					console.log(res)
					const platform = res.osName
					uni.setStorageSync("platform", platform)
				}
			})
		},
		onShow() {
			
		},
		onHide: function() {
			uni.removeStorageSync("tabbarCurrent")
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import 'uview-ui/index.scss';
	@import 'style/base.css';
	@import 'style/flex.css';
	@import 'style/position.css';
	@import 'style/text.css';
	/deep/ .uni-video-cover {
		background-color: rgba(0,0,0,0);
	}
	/deep/ .uni-audio-time {
		display: none;
	}
	body {
		background: #F6F8F9;
		min-height: calc(100vh - var(--window-bottom) - var(--window-top));
	}
</style>
